package cn.huoyingkeji.system.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import cn.huoyingkeji.common.domain.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Schema(description = "部门信息")
public class OrgDTO extends DTO {
    private static final long serialVersionUID = 1L;


    /** 父id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "父ID")
    private Long parentId;

    /** 主管id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "主管id")
    private Long directorId;

    /** 名称 */
    @Schema(description = "名称")
    private String name;

    /** 编码 */
    @Schema(description = "编码")
    private String code;

    /** 分类 */
    @Schema(description = "分类")
    private String category;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;
}
